package com.st.swagger.mapper;

import com.st.swagger.entity.Review;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ReviewMapper {
    List<Review> findAll();

    List<Review> findByProductId(Long productId);

    Review findById(Long id);

    int insertReview(Review review);

    int updateReview(Review review);

    int deleteReview(Long id);
}
